gdk: Remove gdk_cairo_get_clip_rectangle()
authorBenjamin Otte <otte@redhat.com>
Wed, 12 Feb 2020 22:45:51 +0000 (23:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 13 Feb 2020 06:36:38 +0000 (07:36 +0100)
commit052d0f6e6004b7c791cfbb891c70ab0bb316c228
tree181c4587a0a2b205e1433bc143ab6564bf160200
parent8f6cab656082c9a5c3989f355bd5385d4439edd3
gdk: Remove gdk_cairo_get_clip_rectangle()

The function is fundamentally broken for unbounded surfaces.
If a surface is unbounded, we cannot represent this as a
cairo_rectangle_int_t, and using the return value doesn't work because
it's already used for something else.

In GTK3, unbounded surfaces aren't a problem, but GTK4 uses recording
surfaces.

So better remove that function before we keep using it and using it
wrong.
docs/reference/gdk/gdk4-sections.txt
gdk/gdkcairo.c
gdk/gdkcairo.h